# Contributor: Andrej Kolchin <KAAtheWise@protonmail.com>
# Maintainer: Andrej Kolchin <KAAtheWise@protonmail.com>
pkgname=jotdown
pkgver=0.4.0
pkgrel=0
pkgdesc="A parser for the Djot markup language"
url="https://hllmn.net/projects/jotdown/"
arch="all"
license="MIT"
makedepends="rust cargo cargo-auditable"
source="$pkgname-$pkgver.tar.gz::https://github.com/hellux/jotdown/archive/$pkgver.tar.gz"

build() {
	cargo auditable build --release --locked
}

check() {
	cargo test --release --locked
}

package() {
	install -Dm755 target/release/jotdown "$pkgdir"/usr/bin/jotdown
}

sha512sums="
237dcbd3ad047a35f4d19c7d4baa0a8de99fae9d79cc10a7e5716abf9a9a3a150e28106267525f0b65380020427214149c7a626880934c7311ec7e5a1be2c85a  jotdown-0.4.0.tar.gz
"
